package com.jiandaoshou.utils;

import java.text.DecimalFormat;

/**
 * Created by Administrator on 2016/12/24 0024.
 */

public class CommonUtil {

    public static String roundDouble(float d) {
        DecimalFormat df = new DecimalFormat();
        df.setMaximumFractionDigits(3);
        return df.format(d);
    }
}
